package com.itheima.controller;

import com.itheima.pojo.*;
import com.itheima.service.NursingLevelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/nurselevel")
@RestController
public class NursingLevelController {

    @Autowired
    private NursingLevelService nursingLevelService;


    /***
     * 分页查询
     */
    @GetMapping
    public Resultwo list(NursinglevelQueryParam nursinglevelQueryParam){
        // 调用Service查询->PageResult
        PageResultwo pageResultwo = nursingLevelService.listwo(nursinglevelQueryParam);
        //响应数据
        return Resultwo.success(pageResultwo);
    }


}
